#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>

#define AT_buff_len 256

int main(void) {
    int count_AT_buff_len = 0;
    int count_AT_buff_size = 0;
    char AT_buff[AT_buff_len];

    memset(AT_buff, 0, AT_buff_len);

    count_AT_buff_len = strlen(AT_buff);
    count_AT_buff_size = sizeof(AT_buff);

    printf("count_AT_buff_len==%d\n", count_AT_buff_len);
    printf("count_AT_buff_size==%d\n", count_AT_buff_size);

    strcpy((char *)AT_buff, "\r\n");//添加AT命令结尾的\r\n
    count_AT_buff_len = strlen(AT_buff);
    count_AT_buff_size = sizeof(AT_buff);
    printf("count_AT_buff_len==%d\n", count_AT_buff_len);
    printf("count_AT_buff_size==%d\n", count_AT_buff_size);

    printf("Hello World 1\n");

    char* rec_tcp_buff_1 = "123";
    char* rec_tcp_buff_2 = "123\r\n";
    int rec_tcp_buff_1_len = strlen(rec_tcp_buff_1);
    int rec_tcp_buff_2_len = strlen(rec_tcp_buff_2);
    printf("rec_tcp_buff_1_len==%d\n", rec_tcp_buff_1_len);
    printf("rec_tcp_buff_2_len==%d\n", rec_tcp_buff_2_len);

    printf("Hello World 2\n");
    return 0;
}
